#!/usr/bin/env python3
"""
训练入口脚本
用法: python scripts/train.py
"""
import sys
from pathlib import Path

sys.path.append(str(Path(__file__).parent.parent))

from src.trainer import JiaboTrainer
from src.utils import setup_logging


def main():
    setup_logging("INFO")
    
    trainer = JiaboTrainer("configs/train_config.json")
    trainer.train("configs/model_config.json")


if __name__ == "__main__":
    main()
